#define _CRT_SECURE_NO_WARNINGS 1
//#define UDEBUG
#include <stdio.h>
#include <string.h>
#include <assert.h>
char* My_strcpy(char* des, const char* src)
{	
	assert(des && src);
	char* ret = des;
	while (*des != '\0')
	{
		*des++ = *src++;
	}
	*des = '\0';
	return ret;
}

char* My_strcat(char* des, const char* src)
{	
	assert(des && src);
	char* ret = des;
	while (*des != '\0')
	{
		des++;
	}
	for (;*src;src++,des++)
	{
		*des = *src;
	}
	*des = '\0';
	return ret;
}

int My_strlen(char* arr)
{
	assert(arr);
	int count = 0;
	while (*arr++ != '\0')
	{
		++count;
	}
	return count;
}

int main()
{
	char arr1[30] = "I really miss you!";
	char arr2[10] = "I don't ";
	//My_strcpy(arr1, arr2);
	My_strcat(arr1, arr2);
	int num =My_strlen(arr1);
	printf("%s", arr1);
	printf("\n");
	//printf("%d", num);

	return 0;
}

